<template>
  <div>
    <h3>这里是后台首页</h3>
    <button type="button" @click="toActor">进入演员页面</button>
  <router-link to="/admin/user">User</router-link>|
  <router-link to="/admin/actor">Actor</router-link>|
  <router-link to="/admin/movie">Movie</router-link>|
  <!--没有特殊说明的情况下，不推荐使用a标签进行页面跳转-->
    <a href="/watch">a标签路由</a>
  <div style="height: 400px;width: 400px;border: 1px solid red;">
    <router-view/>
  </div>
  </div>
</template>

<script>
export default {
  name: 'Admin',
  data () {
    return {}
  },
  methods: {
    toActor () {
      this.$router.push('/admin/actor').catch(() => {})
    }
  }
}
</script>

<style scoped>

</style>
